from po.base_page import BasePage


class AddMemberPage(BasePage):
    def add_member(self):
        """
        添加成员操作，返回通讯录页面
        :return:
        """
        #输入姓名、id、手机号码
        from po.contact_page import ContactPage
        self.driver.find_element_by_id("username").send_keys("干饭人")
        self.driver.find_element_by_id("memberAdd_acctid").send_keys("12234")
        self.driver.find_element_by_id("memberAdd_phone").send_keys("18655555555")
        #点击保存
        self.driver.find_element_by_css_selector(".js_btn_save").click()
        return ContactPage(self.driver)